home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1993…ch: Other People's Memory / ADC Developer CD (1993-03) (''Other People's Memory'')_iso / Dev.CD Mar 93.iso / Technical Documentation / Sample Code / DTS.Lib & Samples / DTS.Lib / DTS.Lib.make < prev    next >
Encoding:
Text File  |  1992-10-22  |  2.4 KB  |  84 lines  |  [TEXT/MPS ]

  1. #------------------------------------------------------------------------------
  2. #
  3. #    Apple Macintosh Developer Technical Support
  4. #
  5. #    Program:    DTS.Lib
  6. #    File:        DTS.Lib.make    -    Make Source
  7. #
  8. #    Copyright © 1988-1991 Apple Computer, Inc.
  9. #    All rights reserved.
  10. #
  11. #------------------------------------------------------------------------------
  12.  
  13. LibName            =    'DTS.Lib'
  14.  
  15. DTS.Lib.hdrs    =   ":DTS.Lib.headers:"
  16. projsrc            =    :
  17. obj                =     :OBJECT:
  18.  
  19. SymOptions        =    #-sym on                    # turn this on to debug with SADE
  20.  
  21. IncludesFolders    =    -i {DTS.Lib.hdrs}
  22. COptions        =    {IncludesFolders} {SymOptions} -r -mbg on
  23. LibOptions        =    {SymOptions}
  24.  
  25. #------------------------------------------------------------------------------
  26. # These are modified default build rules.  This is necessary to take into
  27. # account differences between MPW 3.1 and 3.2
  28. #------------------------------------------------------------------------------
  29. {obj}            ƒ    {projsrc}
  30.  
  31. {obj}.c.o        ƒ    {projsrc}.c
  32.     {C} {COptions} {CAltOptions} {DepDir}{Default}.c -o {TargDir}{Default}.c.o
  33.  
  34. #------------------------------------------------------------------------------
  35. # These are the objects that we want to include in the library.
  36. #------------------------------------------------------------------------------
  37. LibObjects        =    ∂
  38.                     {obj}aeconnect.c.o ∂
  39.                     {obj}aerequired.c.o ∂
  40.                     {obj}aeutils.c.o ∂
  41.                     {obj}appletalk.c.o ∂
  42.                     {obj}ctlhandler.c.o ∂
  43.                     {obj}file.c.o ∂
  44.                     {obj}gwlayers.c.o ∂
  45.                     {obj}init.c.o ∂
  46.                     {obj}listcontrol.c.o ∂
  47.                     {obj}ppc.c.o ∂
  48.                     {obj}print.c.o ∂
  49.                     {obj}stringutils.c.o ∂
  50.                     {obj}texteditcontrol.a.o ∂
  51.                     {obj}texteditcontrol.c.o ∂
  52.                     {obj}treeobj.c.o ∂
  53.                     {obj}tundoobj.c.o ∂
  54.                     {obj}tundopartobj.c.o ∂
  55.                     {obj}tundotaskobj.c.o ∂
  56.                     {obj}utilities.c.o ∂
  57.                     {obj}viewhierarchy.c.o ∂
  58.                     {obj}window.c.o
  59.  
  60. {LibName}            ƒƒ ShellForce
  61.  
  62. # With the above rule, {LibName} will always be out of date with respect to
  63. # the non-existent file ShellForce.  This will force the following commands to
  64. # be executed.
  65. ShellForce            ƒ
  66.     BEGIN
  67.         IF "{ShellVersion}" == ""
  68.             ( EVALUATE "`Version`" =~ /MPW Shell≈ ([0-9]+(.[ab0-9]+)+)®1≈/ ) ∑ Dev:Null
  69.             SET ShellVersion "{®1}"
  70.         END
  71.         IF "{ShellVersion}" =~ /3.[01]≈/
  72.             SET PAltOptions "-d MPW32=FALSE"
  73.             SET CAltOptions "-d MPW31"
  74.         ELSE
  75.             SET PAltOptions "-d MPW32=TRUE"
  76.             SET CAltOptions "-d MPW32"
  77.         END
  78.     END ∑ Dev:Null # Output to bit bucket so we don’t see above calculations
  79.  
  80.  
  81. {LibName}            ƒƒ {LibObjects}
  82.     Lib {LibObjects} {LibOptions} -o {Targ}
  83.  
  84.